﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using FixSoft.CloudGround.Base;

namespace FixSoft.CloudGround.Base
{
    public class Settings : XmlSerializable
    {
        public Settings()
        {
            Provider = "WallBase";
            Language = CultureInfo.CurrentUICulture.Name;
            DownloadAutomatically = true;
            RefreshInterval = 20;
            SkipLowRes = true;
            GetMaxRes = false;
            ClearOldPics = false;
            ShowWarning = true;
            ClearInterval = 3;
            Filter = "";
            TimeMode = TimeModes.Minutes;
            Search = "Clouds";
            ChangeLogonBg = false;
            FlickrPageIndex = new SerializableDictionary<string, int>();
        }

        public string Provider { get; set; }
        public string Search { get; set; }
        public string Language { get; set; }
        public bool DownloadAutomatically { get; set; }
        public double RefreshInterval { get; set; }
        public bool SkipLowRes { get; set; }
        public bool GetMaxRes { get; set; }
        public string Filter { get; set; }
        public int ClearInterval { get; set; }
        public bool ClearOldPics { get; set; }
        public bool ChangeLogonBg { get; set; }
        public bool ShowWarning { get; set; }
        public TimeModes TimeMode { get; set; }
        public string ExcludedPictures { get; set; }
        public SerializableDictionary <string,int> FlickrPageIndex {get;set;}
    }
    public enum TimeModes
    {
        Seconds = 1000,
        Minutes = 60000,
        Hours = 3600000
    }
}
